<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>学生列表</title>
</head>
<body>
  <table>
    <tr>
      <td>id</td>
      <td>姓名</td>
      <td>性别</td>
      <td>年龄</td>
      <td>班级</td>
    </tr>
    <tr th:each="s:${students}">
      <td th:text="${s.id}"></td>
      <td th:text="${s.name}"></td>
      <td>
        <input type="radio" th:checked="${s.gender}=='男'" />男
        <input type="radio" th:checked="${s.gender}=='女'" />女
      </td>
      <td th:text="${s.age}"></td>
      <td>
        <select >
          <option th:selected="${s.classname}=='计科1班'">计科1班</option>
          <option th:selected="${s.classname}=='计科2班'">计科2班</option>
          <option th:selected="${s.classname}=='计科3班'">计科3班</option>
        </select>
      </td>
    </tr>
  </table>
</body>
</html>